package controller;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import dao.GeteBayDetailsDAO;

public class GeteBayDetailsAction extends Action{

	@Override
	public String perform(HttpServletRequest request,
			HttpServletResponse response) {
		
		HashMap<String,String> data = GeteBayDetailsDAO.getEbayDetails();
		
		request.setAttribute("time", data.get("Timestamp"));
		request.setAttribute("status", data.get("Ack"));
		
		return "geteBayDetails.view";
	}

}
